package com.axxc.jpa.pattendegign.commons;

import com.axxc.jpa.pattendegign.builder.CPU;
import com.axxc.jpa.pattendegign.builder.Computer;
import com.axxc.jpa.pattendegign.builder.HardDisk;
import com.axxc.jpa.pattendegign.builder.Item;
import com.axxc.jpa.pattendegign.builder.KeyBoard;
import com.axxc.jpa.pattendegign.builder.Memory;

/**
 * @ClassName TestBuilderPatten
 * @Description //TODO 测试建造者模式
 * @author xxc
 * @data 2018年9月1日下午8:11:27
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class TestBuilderPatten {

	public static void main(String[] args) {

		new Computer<Item>().builder(new CPU("I7-7940 8核12线程")).builder(new Memory("16G 内存条"))
				.builder(new HardDisk("2T 固态")).builder(new KeyBoard("双飞燕  游戏办公键鼠一套")).show();
	}
}
